export const request = (params)=>{

  const url ='http://localhost:3000'
  return new Promise((resolve,reject)=>{
      wx.request({
        ...params,
        url:url+params.url,
        success:((res)=>{
          resolve(res)
        })
      })
    })
  }